package com.wh.music.service.impl;

import com.wh.music.dao.AdminMapper;
import com.wh.music.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

  @Autowired
  private AdminMapper adminMapper;

  /**
   * 验证密码是否正确
   *
   * @param username
   * @param password
   */
  @Override
  public boolean verifyPassword(String username, String password) {
    return adminMapper.verifyPassword(username,password)>0;
  }
}
